
            using System;
            using System.Collections.Generic;
            using System.Linq;
            using System.Text;
            using BusinessObject;
            using DataAccessLayer;

            namespace BusinessLogic
            {
                   /// <summary>
                    /// Define NhaCungCapUtil class. This class user for BussinessLayer.
    
                /// </summary>
              public class NhaCungCapUtil {
                    /// <summary>
                    /// Define function Insert for NhaCungCap Object.
                    /// </summary>
                    /// <param name="t">object data need Insert.</param>
                    /// <returns>
                    ///    True: if insert successfull.
                    ///    False: if insert error.
                    ///</returns>
                    public static int Insert(NhaCungCap t)
                    {
                        
                      return NhaCungCapDao.Insert(t);
                    }
                    /// <summary>
                    /// Define function Update for NhaCungCap Object.
                    /// </summary>
                    /// <param name="t">project data need updated.</param>
                    /// <returns>
                    ///    True: if update successful.
                    ///    False: if update Error.
                    ///</returns>
                    public static bool Update( NhaCungCap t )
                    {
                        
                      return NhaCungCapDao.Update( t );
                    }
                    /// <summary>
                    /// Get All NhaCungCap object from table NhaCungCap.
                    /// </summary>
                    /// <returns>List NhaCungCap object.</returns>
                    public static List<NhaCungCapResult> GetAll()
                    {     
                        return NhaCungCapDao.GetAll();
                    }
                    /// <summary>
                    /// Search NhaCungCap object in table NhaCungCap.
                    /// </summary>
                    /// <param name="t">Condition for Search.</param>

                    /// <returns>List NhaCungCapResult objects.</returns>

                     public static List<NhaCungCapResult> SearchNhaCungCapSomeCondition(NhaCungCap t)
                {
                        return  NhaCungCapDao.SearchNhaCungCapSomeCondition(t);
                }
/// <summary>
/// Get a NhaCungCap data object by primary key. 
/// </summary>
/// <param name="maNCC" >This is primary key.</param>
/// <returns>A NhaCungCap object.</returns>

                    public static NhaCungCap Get(int maNCC)
                    {
                      return NhaCungCapDao.Get(maNCC);
                    }
/// <summary>
/// This function to Delete NhaCungCap object by primary key.
/// </summary>
/// <param name="maNCC" >This is primary key.</param>
/// <returns>If succesful return True else  return False.</returns>

                    public static bool Delete(int maNCC)
                    {
                         
                      return NhaCungCapDao.Delete(maNCC);
                    }} }